import request from '@/utils/request/index'
export default {
	//获取用户钱包充值地址
	getUserAccountAddress(obj) {
		return request.postJson('/wallet/getUserAccountAddress', obj)
	},
	//创建钱包
	createWallet(obj) {
		return request.postJson('/wallet/createWallet', obj)
	},
	getAccount() {
		return request.postJson("/wallet/getAccount", {}, null, false)
	},
	importPrivateKey(obj) {
		return request.postJson("/wallet/importPrivateKey", obj)
	},
	importMnemonic(obj) {
		return request.postJson("/wallet/importMnemonic", obj)
	},
	withdraw(obj) {
		return request.postJson("/wallet/withdraw", obj)
	},
	preVerifyMnemonic() {
		return request.postJson("/wallet/preVerifyMnemonic", {})
	},
	verifyMnemonic(obj) {
		return request.postJson("/wallet/verifyMnemonic", obj)
	},
	getPrivateKey(obj) {
		return request.postJson("/wallet/getPrivateKey", obj)
	},
	transferLog(obj) {
		return request.postJson("/wallet/transferLog", obj)
	},
	balance(obj) {
		return request.postJson("/wallet/balance", obj)
	},
	walletAddress() {
		return request.postJson("/wallet/walletAddress", {})
	}
}
